import $axios from '@/utils/axios'

export default {
  
  getList(params?: object): Promise<CommonObjectType<string>> {
    return $axios.get('dm/api/sys/role/list', params)
  },
  roleAdd(params?: object): Promise<CommonObjectType<string>> {
    return $axios.post('dm/api/sys/role/add', params)
  },
  roleDel(params?: object): Promise<CommonObjectType<string>> {
    return $axios.delete('dm/api/sys/role/del', params)
  },
  roleEdit(params?: object): Promise<CommonObjectType<string>> {
    return $axios.put('dm/api/sys/role/edit', params)
  },
  roleDetail(params?: object): Promise<CommonObjectType<string>> {
    return $axios.get('dm/api/sys/role/detail', params)
  },
}
